const express = require('express');

let app = express();

// 导入路由器
let newsRouter = require('./routes/newsRouter');
// 导入路由器
let userRouter = require('./routes/userRouter');
// 导入路由器
let goodsRouter = require('./routes/goodsRouter');


// 使用路由
app.use(newsRouter);
app.use(userRouter);
app.use(goodsRouter);

app.listen(80,()=>{
    console.log('success');
})